home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 90 / CD Actual 90.iso / Software3D / VirtualLight / VLight1.3win32.exe / Examples / Level2 / Illum2.vib < prev    next >
Encoding:
Text File  |  2002-10-07  |  5.5 KB  |  69 lines

  1. // VirtuaLight VIB-Structure
  2. // Converted by VModel v0.60
  3. // by Michael Grantz (winosi@online.de)
  4.  
  5. ReadArchive "statics.vib"
  6.  
  7. Declare checker_map = SpectrumOfColors( [0.0, '0.1,0.1,0.1', 0.5, '0.1,0.1,0.1'][0.5, '1,1,1', 1.01, '1,1,1'] )
  8. Declare MAT_Checker = Shader [ FunctionalSurface [ Kd 0.7 Kr 0.3 Caustics 0.5 Color checker_map[Checker] ] Scale(0.7,0.7,0.7) ]
  9. Declare MAT_Glass   = Shader [ PlainSurface      [ Color '1.000000,1.000000,1.000000' Kd 0.000000 Ka 0.05 Ks 0 Kr 0.2 Kt (0.8, 1.548809) Caustics(0.5,InternalCaustics) Dispersion (1.1, 10) ] ]
  10. Declare MAT_Mirror  = Shader [ PlainSurface      [ Color '0.900000,0.900000,0.900000' Kd 0.050000 Ks 0 Kr 0.950000 Caustics 0.5 ] ]
  11. Declare MAT_brass   = Shader [ PlainSurface      [ Color '0.900000,0.600000,0.300000' Kd 0.500000 Ks 0.3 Kr 0.500000 Caustics 0.2 Kb 1.2 MetalAttribute 1.2 ReitzSpecularBRDF 10 ] ]
  12. Declare MAT_red     = Shader [ PlainSurface      [ Color '0.950000,0.100000,0.100000' Kd 1.000000 Ks 0 ] ]
  13. Declare MAT_green   = Shader [ PlainSurface      [ Color '0.100000,0.950000,0.100000' Kd 1.000000 Ks 0 ] ]
  14. Declare MAT_white   = Shader [ PlainSurface      [ Color '0.920000,0.920000,0.920000' Kd 1.000000 Ks 0 ] ]
  15. Declare MAT_Light   = Shader [ PlainSurface      [ Color '1.000000,1.000000,1.000000' Ka 1.000000 Ks 0 ] ]
  16.  
  17. Camera [ (1.270000, 1.250000, 3.000000), (-0.330000, 1.250000, -0.140000), (0.000000, 1.000000, 0.000000) FieldOfView 42.000001 Format(480,360) FrameAspectRatio -(480/360) ]
  18.  
  19. Options [ IrradianceSamples 90 IrradianceBounceLevel 1 IrradianceMaxError 0.7 ]
  20.  
  21. ComputeIrradiance 16
  22.  
  23. Photons(100000, 0, 0)
  24.  
  25. AreaLight [ Plane(8,8)
  26. Scale (0.175000, 1, 0.175000)
  27. Translate (-1.250000,2.395000,-1.250000) Intensity 2.900000 Decay QUADRATIC ]
  28.  
  29. // Foot
  30. Shape [ Torus((-1.770000, 0.000000, -1.126000), (0.000000, 1.000000, 0.000000), 0.050000, 0.075000) MAT_brass ]
  31. // Stand
  32. Shape [ Cylinder((-1.770000, 0.075000, -1.126000), (-1.770000, 0.675000, -1.126000), 0.050000) MAT_brass ]
  33. // GlassBall
  34. Shape [ Sphere((-1.770000, 1.126000, -1.126000), 0.450000) MAT_Glass ]
  35. // MirrorBall
  36. Shape [ Sphere((-0.576000, 0.450000, -1.780000), 0.450000) MAT_Mirror ]
  37. // WhiteBall
  38. Shape [ Sphere((0.600000, 0.150000, -0.600000), 0.150000) MAT_white ]
  39. // horizontal_pipe
  40. Shape [ Cylinder((-0.500000, 1.500000, -3.750000), (1.000000, 1.500000, -3.750000), 0.150000) MAT_white ]
  41.  
  42. // middle_wall
  43. Shape [ Polygon(4, (-0.500000, 0.000000, -2.500000), (-0.500000, 2.500000, -2.500000), (-0.500000, 2.500000, -4.000000), (-0.500000, 0.000000, -4.000000)) MAT_white ]
  44. // left_wall
  45. Shape [ Polygon(4, (-2.500000, 0.000000, 0.000000), (-2.500000, 2.500000, 0.000000), (-2.500000, 2.500000, -2.500000), (-2.500000, 0.000000, -2.500000)) MAT_red ]
  46. // right_wall
  47. Shape [ Polygon(4, (1.000000, 0.000000, 0.000000), (1.000000, 0.000000, -4.000000), (1.000000, 2.500000, -4.000000), (1.000000, 2.500000, 0.000000)) MAT_green ]
  48. // front_wall
  49. //Shape [ Polygon(4, (1.000000, 0.000000, 0.000000), (1.000000, 2.500000, 0.000000), (-2.500000, 2.500000, 0.000000), (-2.500000, 0.000000, 0.000000)) MAT_white ]
  50. // back_back_wall
  51. Shape [ Polygon(4, (1.000000, 0.000000, -4.000000), (-0.500000, 0.000000, -4.000000), (-0.500000, 2.500000, -4.000000), (1.000000, 2.500000, -4.000000)) MAT_white ]
  52. // front_back_wall
  53. Shape [ Polygon(4, (-0.500000, 0.000000, -2.500000), (-2.500000, 0.000000, -2.500000), (-2.500000, 2.500000, -2.500000), (-0.500000, 2.500000, -2.500000)) MAT_white ]
  54. // Ceiling2
  55. Shape [ Polygon(4, (1.000000, 2.500000, -2.500000), (1.000000, 2.500000, -4.000000), (-0.500000, 2.500000, -4.000000), (-0.500000, 2.500000, -2.500000)) MAT_white ]
  56. // Ceiling1
  57. Shape [ Polygon(4, (1.000000, 2.500000, 0.000000), (1.000000, 2.500000, -2.500000), (-2.500000, 2.500000, -2.500000), (-2.500000, 2.500000, 0.000000)) MAT_white ]
  58. // light_front
  59. Shape [ Polygon(4, (-0.950000, 2.400000, -0.950000), (-1.550000, 2.400000, -0.950000), (-1.550000, 2.500000, -0.950000), (-0.950000, 2.500000, -0.950000)) MAT_white ]
  60. // light_side
  61. Shape [ Polygon(4, (-0.950000, 2.400000, -0.950000), (-0.950000, 2.500000, -0.950000), (-0.950000, 2.500000, -1.550000), (-0.950000, 2.400000, -1.550000)) MAT_white ]
  62. // Light
  63. Shape [ Polygon(4, (-0.950000, 2.400000, -0.950000), (-0.950000, 2.400000, -1.550000), (-1.550000, 2.400000, -1.550000), (-1.550000, 2.400000, -0.950000)) MAT_Light ]
  64. // Floor
  65. Shape [ TriangularPatch((1.000000, 0.000000, 0.000000), (0.000000, 1.000000, 0.000000) UV=0.000000,0.000000, (-2.500000, 0.000000, 0.000000), (0.000000, 1.000000, 0.000000) UV=1.000000,0.000000, (-2.500000, 0.000000, -2.500000), (0.000000, 1.000000, 0.000000) UV=1.000000,0.625000) MAT_Checker ]
  66. Shape [ TriangularPatch((1.000000, 0.000000, 0.000000), (0.000000, 1.000000, 0.000000) UV=0.000000,0.000000, (-2.500000, 0.000000, -2.500000), (0.000000, 1.000000, 0.000000) UV=1.000000,0.625000, (-0.500000, 0.000000, -2.500000), (0.000000, 1.000000, 0.000000) UV=0.428571,0.625000) MAT_Checker ]
  67. Shape [ TriangularPatch((1.000000, 0.000000, 0.000000), (0.000000, 1.000000, 0.000000) UV=0.000000,0.000000, (-0.500000, 0.000000, -2.500000), (0.000000, 1.000000, 0.000000) UV=0.428571,0.625000, (-0.500000, 0.000000, -4.000000), (0.000000, 1.000000, 0.000000) UV=0.428571,1.000000) MAT_Checker ]
  68. Shape [ TriangularPatch((1.000000, 0.000000, 0.000000), (0.000000, 1.000000, 0.000000) UV=0.000000,0.000000, (-0.500000, 0.000000, -4.000000), (0.000000, 1.000000, 0.000000) UV=0.428571,1.000000, (1.000000, 0.000000, -4.000000), (0.000000, 1.000000, 0.000000) UV=0.000000,1.000000) MAT_Checker ]
  69.